package com.sport.service;

import com.sport.pojo.dto.ApplyPlayerDto;
import com.sport.pojo.dto.CreateTeamDto;
import com.sport.pojo.dto.TeamRankDto;
import com.sport.pojo.entity.*;
import com.sport.pojo.vo.TeamUserVo;

import java.util.List;

public interface TeamService {
    int userIntoTeam(String userId,String teamId);
    List<FootballPlayer> showAllPlayersIn(String teamId);

    List<Team> showAllTeam();

    Team showTeamDetails(String teamName);
    Team showTeamMessageBy(String teamId);
    List<TeamRankDto> getTeamRankList();
    int applyFor(String userName,String teamId);
    List<ApplyPlayerDto> getApplyTable(String applicationTeamId);
    int applyYesUserIntoTeamByName(TeamUserVo teamUserVo);
    int applyNoUserIntoTeamByName(TeamUserVo teamUserVo);
    List<LeagueScoreboardDto> showLeagueScoreboard();
    List<Team> searchTeam(String teamName);
    int creatTeam(CreateTeamDto createTeamDto);
}
